import { Grid,HomeFilled,Message,Setting,DataLine } from '@element-plus/icons-vue';
import pinia from '@/store/pinia';
import { gatewayStore } from '@/store/gateway'
// const gateway_store = gatewayStore(pinia)
export const menuList = [
    {
       id: 1,
       path: "/admin",
       title: "message.home",
       icon: HomeFilled,
       router: [
         { title: "message.home",path: "/admin" }
       ]
    },
    {
       id: 2,
       path: "/admin/data",
       title: "message.management",
       icon: Grid,
       router: [
         {title: "message.home",path: "/admin"},
         {title: "message.management", path: "/admin/data"}
       ]
    },
    // {
    //    id: 3,
    //    path: "/admin/state",
    //    title: "message.state",
    //    icon: MessageBox,
    //    router: [
    //      {title: "message.home",path: "/admin"},
    //      {title: "message.state", path: "/admin/state"}
    //    ]
    // },
    {
      id: 4,
      path: "/admin/message",
      title: "message.record",
      icon: Message,
      router: [
        {title: "message.home",path: "/admin"},
        {title: "message.record",path: "/admin/message"}
      ]
    },
    // {
    //   id: 6,
    //   title: "message.remote",
    //   icon: Monitor,
    //   children: [
    //      {
    //        id: 7,
    //        title: "message.monitoring",
    //        path: "/admin/watch",
    //        icon: Menu,
    //        router: [
    //          {title: "message.home",path: "/admin"},
    //          {title: "message.remote",path: "/admin/message"},
    //          {title: "message.monitoring",path: "/admin/watch"}
    //        ]
    //      },
    //      {
    //        id: 8,
    //        path: "/admin/user",
    //        title: "message.message",
    //        icon: User,
    //        router: [
    //          {title: "message.home",path: "/admin"},
    //          {title: "message.remote",path: "/admin/message"},
    //          {title: "message.message",path: "/admin/user"}
    //        ]
    //      }
    //   ]
    // },
    {
      id: 9,
      path: "/admin/analysis",
      title: "message.analysis",
      icon: DataLine,
      router: [
       {title: "message.home",path: "/admin"},
       {title: "message.analysis",path: "/admin/analysis"}
      ]
    },
    {
      id: 10,
      path: "/admin/setting",
      title: "message.setting",
      icon: Setting,
      router: [
          { title: "message.home", path: "/admin" },
          { title: "message.setting", path: "/admin/setting" }
      ]
    },
    // {
    //   id: 11,
    //   title: "message.gateway_setting",
    //   icon: Odometer,
    //   isShow: gateway_store.debug,
    //   children: [
    //      {
    //        id: 12,
    //        title: "message.device_management",
    //        path: "/admin/gateway",
    //        icon: Menu,
    //        router: [
    //          { title: "message.home",path: "/admin" },
    //          { title: "message.gateway_setting",path: "/admin/gateway" },
    //          { title: "message.device_management",path: "/admin/gateway" }
    //        ]
    //      },
    //      {
    //        id: 13,
    //        path: "/admin/debug",
    //        title: "message.debug_panel",
    //        icon: User,
    //        router: [
    //          {title: "message.home",path: "/admin"},
    //          {title: "message.gateway_setting",path: "/admin/gateway"},
    //          {title: "message.debug_panel",path: "/admin/debug"}
    //        ]
    //      }
    //   ]
    // },
  ]